$\forall$$T$:Type, $L$:$T$ List, $P$:($T$$\rightarrow$$T$$\rightarrow\mathbb{B}$). count($x$ $<$ $y$ in $L$ $\mid$ $P$($x$,$y$)) $\in$ $\mathbb{N}$